<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ include file="/sys/include/header.jsp" %>
<html>
<head>

</head>
<style>
.text{
	font-size=12;
	border=1px solid #7F9DB9;
	font-family:Arial;
	background-color:rgb(255,255,255)
}
td{
	font-size=12;
}
</style>

<body >
<%
	
	session.setMaxInactiveInterval(3600); 
	
	String svalue="";  
	if(request.getCookies()!=null)
	{
	Cookie cookies[]=request.getCookies(); 
	Cookie sCookie=null; 
	
	String sname=""; 
		for(int i=0;i<cookies.length;i++)
		{
	  	 sCookie = cookies[i]; 
	   	if (sCookie.getName().equals("spearheadloginname"))
	   	{
	  		svalue=sCookie.getValue(); 
	  		break;
	  	}
	  	}  
	}	
%>
<form name="loginform" method="post" action="jsp/main/login.action" >
<table cellspacing="0" cellpadding="0" border="0" width="1024" height="100%">
<tr>
	<td align="center" height="65" background="sys/img/loginimgs/top_bg.gif">
		<table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">
			<tr>
				<td width="500"><img  width="500" src="sys/style01/img/loginimgs/toplogo.gif"></img></td> 
				<td width="231"><img  width="231" height="100%"  src="sys/style01/img/loginimgs/1.gif"></td>
				<td width="293"><img  width="293" src="sys/style01/img/loginimgs/2.gif"></td>     
			</tr>
		</table> 
	</td>
</tr>
<tr>
	<td align="center" bgColor="#3F88BD">
		<table cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td><img src="sys/style01/img/loginimgs/formTable_left.gif" border="0"></img></td>
				<td background="sys/style01/img/loginimgs/formTable_bg.gif" width="242">
					<table cellspacing="0" cellpadding="0" border="0" width="242" height="197">
						<tr><td height="135" align="center">
<table cellspacing="0" cellpadding="0" border="0">
	<tr>
		<td colspan="2">

   		</td>
	</tr>
		<tr>
		<td colspan="2" height="4"></td>
	</tr>
	<tr>
		<td width="50" align="left">用户名</td>
		<td align="left"><input type="text" name="loginName" class="text"></input></td>
	</tr>

	<tr>
		<td colspan="2" height="4"></td>
	</tr>
	
	<tr>
		<td colspan="2" height="4"></td>
	</tr>
	<tr>
		<td width="50" align="left">密码</td>
		<td align="left"><input type="password" name="password" class="text"></input></td>
	</tr>
	<tr>
		<td colspan="2" height="4"></td>
	</tr>
	<tr>
		<td colspan="2" height="4"></td>
	</tr>
	 <%
				if(request.getAttribute("message")!=null)
				{
					String errors=(String)request.getAttribute("message");
	  			%>
                <tr>
		<td colspan="2" height="4"><%=errors%></td>
	</tr>	
				 <%
      			}
      			%>
				
</table>
						</td></tr>
						<tr><td height="62" align="center">
						<input type="image" name="_submit" src="sys/style01/img/loginimgs/btn_submit.gif"></input>&nbsp;&nbsp;&nbsp;
						<input type="image" name="close" onClick="reset()" src="sys/style01/img/loginimgs/btn_close.gif"></input>
						</td></tr>
					</table>
				</td>
				<td><img src="sys/style01/img/loginimgs/formTable_right.gif" border="0"></img></td>
			</tr>
		</table>
	</td>
</tr>
<tr>
	<td align="right" valign="bottom" height="65" bgColor="#3F88BD" style="padding-bottom:10px;padding-right:10px;"></td>
</tr>
</table>
</form>
</body>
</html>